"""
for temp in range(1,3):
    print(temp)
#使用for循环遍历序列
for temp in ['A','B']:
    print(temp)
#使用for循环遍历字典
movioes = {
    'name':'The Matrix',
    'year':1999,
    'director':'Lana Wachowski'
}
for first in movioes.keys():#遍历字典keys
    print(first)
for first in movioes.values():#遍历字典values
    print(first)
for jian,zhi in movioes.items():#遍历字典keys和values
    print(jian)
    print(zhi)
 """
'''
movioes = {
    'name':'The Matrix',
    'year':1999,
    'director':'Lana Wachowski'
}
for i in enumerate(movioes.items()):#遍历字典keys和values
    print(i)
'''
#推导式
list1 = [i for i in(1,2,3,) ]
print (list1)


